<?php the_post();?>
<?php ThemexCourse::initCourse($post->ID); ?>
<div class="threecol column">
<?php get_template_part('loop','course'); ?>
</div>
<?php if(true) { ?>
<div class="sixcol column">
<?php } else { ?>
<div class="ninecol column last">
<?php } ?>
	<div class="course-description widget <?php echo ThemexCourse::$data['course']['status']; ?>-course">
		<div class="widget-title"><h4 class="nomargin"><?php _e('Description', 'academy'); ?></h4></div>
		<div class="widget-content">
			<?php the_content(); ?>			
			<footer class="course-footer">
			<?php get_template_part('module', 'form'); ?>
			</footer>			
    		</div>						
	</div>
</div>
<div class="threecol column last">
<!--//get_template_part('module', 'users'); 
//
//echo "texto...............................................!!!!!<br>";
//$certificate = ThemexCourse::getCertificate();
////echo print_r($certificate, true); 
//echo $certificate['text'];
//echo $certificate['image']; 
////echo ThemexCourse::$data['course']['certificate'];
//-->

<!--?php get_template_part('module', 'users'); ?>-->

    <div class="widget">
            <div class="widget-title">
                    <h4 class="nomargin left"><?php _e('Service Details', 'academy'); ?></h4>
            </div>
            <div class="widget-content clearfix">
                    <div class="users-listing clearfix">                    
                    <?php 
                    $id_producto = ThemexCourse::$data['course']['product'];
                    $meta_values = get_post_meta( $id_producto ,'_product_attributes',true  );
                    echo "<ul>";
                    if(count($meta_values)>0){
                        foreach ($meta_values as $meta_value) {
                            echo "<li>";
                            echo "<strong>".$meta_value['name'].": </strong>";
                            echo $meta_value['value'];
                            echo "</li>";
                        };
                    }else{
                        echo "<li>No information</li>";
                    }
                    echo "</ul>";                   
                    ?>                        
                    </div>
		
        </div>
 </div>

</div>